function [result] = test_for_run(location)
flag = 1;
if isdir(location)
   file_dir = dir(location);
   for i = 1:length(file_dir)
       if ~file_dir(i).isdir
           flag = 0;
           break;
       end
   end
end
result = flag;